# 单元数排序
list = [1,2,3,4]
list.sort(reverse=True)
print(list)
# 序列数据排序,根据key 函数选择
student = [{'name':'TOM'},{'name':'LILY'}]
student.sort(key = lambda x : x['name'])
print(student)
stu = [('name',20),('LILY',30)]
stu.sort(key = lambda t:t[0])
print(stu)

